package cn.edu.zafu.bigdata.x.xiejunjie;

import java.util.Arrays;
import java.util.List;

public class MaxFinderTest {

    public static void main(String[] args) {
        // 整数列表
        List<Integer> intList = Arrays.asList(3, 67, 99, 12, 100);
        Integer maxInt = MaxFinder.findMax(intList);
        System.out.println("最大整数值: " + maxInt);

        // 字符串列表
        List<String> stringList = Arrays.asList("apple", "banana", "cherry");
        String maxString = MaxFinder.findMax(stringList);
        System.out.println("最大字符串值: " + maxString);
    }
}
